2nd try. tolerate empty tags