re-worked to use max tweet id