added flatten-tag