added code to extract post uris