added logging to bangrab.sh