move out cache and network related layout from main package