began client logic