revert last commit, it works in pshell but not in pserve