small fixes in the scripts