reducing duplication in th blog_router