Revert "remove flatbuffer"

This reverts commit 1c4a8952527974bf10442b6cfc251095ab602d6c.