simplified promise logic for localStorage driver - closes #307