fixed environment execution issues