optimized resolve_method