refactorizing boot