spilt into app and environment config, add hakken setup