optimo client code