update rewrites