added inline ctrl-c