support relative paths with spaces
unmake this a private method
Strip whitespace from headers unless you provide them as an array
fix a couple tests