use two different ways to start the application