put network functions in a separate thingy