rewrite context feature to spec