improve posts parsing