upated for windows and for byte_start issue