begin of binary reader