call back to bootstrap function and separate bootstrap out