modified script to load public data