moved prefixpath to config & send info to previewmap