log and pid in CWD