finish the client logic