fixes to fbthrift