added better error reporting to router class when a method is missing