rewrite some blogit context function