append and prepend rewrites