upon the advice of @donatj, moves from buffer as file handle to string