added BootstrapError for error checking in bootstrap