update parsing ps command