further refinedments the controller ps1, removed old obsolete script