added MW chain functionality