the right way to disable strict key checking