fixed buffer interface. now we always have binary read and write methods. They are required for net communication