change ctrl-Z to exit to ctrl-D