mediation session bug work out and moved to use pointers