initialize read buffer