fix file-related functions