allow single instance mode and to run in the background