undo the setuphook