Fix map without path argument
Make map without explicit methods apply to all methods
Refactor path normalization logic into separate function