separate app and server creation