switch targethtml to processhtml