use config for socket create