save before rewrite to bootstrap