update code to modeler 0.2