update buildref.sh