added todo
added ctrl-c interrupt handler