rewrite start_chroot,stop_chroot and start_network
clean code