implemented multi-network functionality in all core functions