fixed apicontrollerfactory

updated resolve to resolve by name instead of just type