change order of arguments for RBGM and model, see #134