updated script to include reference information