Improved pt debug function, added reset-session-request-hooks