separating out environment stuff