fixes for loading bootstrap only when needed