figured out how to do basic attribute setting for sockets