added support for rules files. Increased message chan length