remove unused code
fix typo in addparent module
add support to new api