First setup of the bootstrap generation which works fine, requires some cleaner code and refactoring