reverting the file_presave hook change