fix post related specs
fix rewrite specs and bring rewrite back