ps_functions.sh #4