get rid of defaultHdrs global var