remove discore-children dependency

Added getChildren function to replace it.