bug fix to support map file