add support for ctrl+c