make it possible to pass in a value for the number of connections to the unit object