added setParent endpoint