changes to share script