hacky fix for _cmp flow