better parsing when tags are missing