update bash client logic