invalid script is allowed to throw exceptions