fixed startup file, which checks multiple instances of app running