update file_functs.cpp/h