added stdin stuff and SIGQUIT
add SIQUIT and stdin stuff