added SIGUSR1 handler to rotate logs