init for all types of network