refactoring sto make LegacyKernelStorage extends GatewayBasedStorage