improved _getChildren implementation