removed btcrates global variable references