add byte tools and some codec
need to implement them all