adding support for explicit html format parameter