added ctrl-c