add script toString method