 					services.push s
 					cb()
 			), (error) =>
-				return cb error if error
-				cb null, services
+				cb error, services
 
 	# Get the current active ports
 	#
 	# @param [Function] Callback function
 	#
 	getPorts: (cb) ->
+		log.debug "#{@id}: get ports"
+
 		@getServices (error, services) =>
 			return cb error if error
 


			cb null, ks

	checkWildcard: (role, cb) ->
		wildcardKey = _.chain @wildcards
			.keys()
			.find (w) -> role.match new RegExp w
			.value()

		return cb() unless wildcardKey

		@addSubscription role, @wildcards[wildcardKey].fn

		cb()

	# Register a service
	#
	# @param [String, Object] Role or object with role and port
	# @param [Function] Callback function
	#
	register: (role, cb) ->
		if typeof role is 'object'
			port = role.port
			role = role.role

			"project"   # project name
		]

		@id or= Math.round Math.random() * 10000

		@ephemeralExpire  = options.ephemeralExpire  or @ephemeralExpire
		@ephemeralRefresh = options.ephemeralRefresh or @ephemeralRefresh
		@prefix           = options.prefix           or @prefix
