add a mode to only use network sockets