added bootstrapping code