many changes to quash, which can now sort of do simple commands