stage history API fixes