less duplication when parsing html args