add mapfile support