for test hooks