testing hooks, mostly