implemented runModule in script API