detect if app is already running;