refactor bootstrap config