added update handling for storage