updated to provide the tag API