uuid in default filename, avoiding base name if VARWWW not defined
generalizing retrieval