make network_init() contained

also start using err()