working on papertrail logging