before fefactaring
beforeBootstrap