formatting and update to setupSocket() call.