added script content checking