added contest history support