finished implementing sigint and sigstop handlers