change the top to be run under the env it's called from