various bugfixes in libshardcache