ps_functions.sh #2