handle local files in example viewer