add debug when getting process state