extract out bootstrapping