added mqbfunctions.xml and change EMC (opening code)