passed the cleanup down into ptth