ready_to_write is now a list of rows...
added make_fragment functions