clean up the post parsing