fix the script for fetching from fred.