move all record keeping into file utility