splitting the application into two