fix bitpay stuff