updated ctrl+c trap