add dialect support

agree. I didn't touch this file. I'm changing it back