add flag for optional hashtag extraction