renamed netdev_main to main