implement _resolve_handler