refactoring: build-fail/success config, html formatting etc