plugin to rewrite base tag