implement papertrail hook