allowHTLM

I think this is a better implementation of #129