added pid and state of process