debugging getPosts