migrating networks.js