made some neat changes to ps1