initial network daemon and reformatting code.