add script validation