fixed bug where mapping tried to make an intermediate folder