bugfixes in libshardcache