moved init functions to post.go