added ctrl+c interrupt handling