move bootstrap to lib