gateway-based distributed sharing system