added printed messages for successful connections