add ReadBytes and other function declaration