produce html report
easier profile tests
easier tests
move logic to main function