add missing buffer shim