all the work required to bootstrap