needed to add a condition on is_master_side on the initial ssh to avoid uneeded ssh connections