upgrade binary-types