started implementation of byte reader