add common ps functions