attempt to fix readFully()