[skip ci] got better header detection compiling; need to fix up unit tests