isolate env into independent package