tmp testing hooks