add timeout for read on get and don't read in newline character