stage history API fixes
Merge pull request #683 from srinivasupadhya/fixes

stage history API fixes