use byte.get*() methods instead of io steram buffer
remove old codes