add code version in mediator model