option merging was broken. rewrite_base more flexible.