upd: new flag to check if application is runing and if not, run it when
the instance is started