pass in environment directory