api updated in ps.py