serialize: silence some warnings