rewrite index with parser