a utility class, very handy
previewmap can use the new utils