fix issues with scripts