huge improvements to share.sh