added channels for processing stats
implemented insert()