update in dist and memory leak bugfix for log file of rules