crazy hack to deal with ids.