extract map stuff from crdtloader to crdtloader::maploader