add function check_filesindex for quick test and repair filesindex - version for debugging