use tag ids for dict keys instead of names