small changes to getpsf