improved create share script