random query on resources to avoid having to dump caches, escape HTML in error msgs