automatically create header via class