v1.2.0 with proper handling of headers and subdirectories