rework network connectivity into daemon