add $socket var in extra options