messing with max_id to rimplement paging