setup preconditions, bootstrap network and shutdown network