midi: mapfile load check. before seperating main file
midi: seperating main file