added sync method in StorageInput