fixing issues with the basic scripts