starting to finalize network code