refactoring and remove reference the the mdig/maps directory