adapt to remotestorage.js v0.8