fixes in the scripts