bootstrap implementation + test