implement pgrep/pkill