add script to extract data