fix the bootstrap loading and add example code