updated the online boostrap part. Prepare to add the comparsion with offline bootstrap.