added server side functionality to maintain reads and retrieve the read order