add: hack apart getPostingsLoop into smaller pieces