fixing bugs in the committed scripts