renewed client code for mingle