add pid logging option