move envify into wallet module