working psf and flat updates