refactored filename/path constraint/mapper