simplified bat.bash