added sigusr1 handler and command line option to disable it