hopefully the final version of post.py