adapt for blackcoin