add formatter for header & separate out line formatter