new bash client logic