use socks proxy for outgoing connections
change arguments with defaults
fix reconncet