fixed function that prints changed scripts