added plan history fetch