fixed router class with the possibility of have infinite arguments in the controller