made small fixes in bat