moved ugly bootstrapping process into cmbootstrap