added 'singlerun' command line argument