update client handle logic