f / cmp api