updated lib, added cmp