added getActiveNodes