added environment to atf stuff