fine tune getposts()