moved file operations for file_operations to fo.c