updated bootstrap loading logic