cleaned up the way in which the private app is started