added function for retrieving "nearest" children by path