preparing for next commit, this one just renames read/write functions