Refactored new io classes to a new file rete-io