moved map type to xml