changed datatype of stop_run
move linkage from setModule to addRule