move header part to separate file