added html method handling (experimental)