added cmp support