cleanup client api