updated code with new version of modeller/modelobjecthelper