tweaks to handle missing docs; doesn't work