setdispatcher and takedispatcher ops