more scripts for data extraction