added rewrite maps feature