add logging for papertrail