modified serial reader to read one byte at a time