cleanup client API