added 

addeda $or condition to the historystats