moving app environment to models folder