handle "quote" function, handle eof better