make .bar.sh more robust