add protocols middleware
clean
finalise html middleware behaviour
add protocls middleware in default init stack + clean