split out app and model files