improved bangrab.sh