merged with btcd