fix range issue with uac file indexing
various improvements to metadata code