fixed a few errors in script and json files