added script to fetch pages