added signal_break for handling ctrl-c