decorator like dialect registration