make chainage work with new API