parse config in header