adding ability to catch ctrl+c