bug fixes
sigint signal handler
bug fixes