optimize defsetter
do a little clean up on getting/setting socket