added code to start up applications
merge