got psf generation working