slight mod to post.rb