new: test building basal ganglia
new: trying to port Dan's Qnetwork code