wip cache versions
fix scanning in case of errors
small fix