move file functions into new file_utils convenience lib