file_update now uses file_write