fixed config
moved env to env class