add_file and remove_file in .h interface