make sure only one instance can run, and accept a --debug command line argument