bugfix, cleaned up envs

Signed-off-by: Tom Green <kingofcuddles@gmail.com>