stuff for handling posts