use PID for log()