checkout - bug fix
model - added some debug for grammar errors