move export_hooks() back to where it used to be