new grammar for theta.json