make some socket fields local