revert some API changes and add deprecated hooks to stop other mods from breaking