clean up env class