PSM work
psm now works
added more psm functionality