update qlmc refactoring