added onStorageError stuff