add support for modifiedAfter and modifiedBefore parameters for stats