add share handler and get mac addr