working on message passing to statsEngine