toggled 2.6/2.7 dictionary generation