remove mediator in newapp script