make spawan a cmd is loggable
auto connect proxy after network restart