move header and backup util to common place