removed possible infinite loop
new Params updated from gui
cleanup in rules