add some checks to validate docset
add more resource checks
check for the index to be meaningful