modifying deploy to get app and env vars