fixed indexes for dangling references
naming cleanup
rename validate to fsck