added some QM stuff