started on a tag parsing fn