read mapfile from path
clean up
clean up 2