updated config to include server ip/port. refactored distributions namespace to be more general.