minus the crazy encode module