refactoring towards running in a simpler mini html