add some tag parsing capability (incomplete)