added recent history support