updated but still likely broken btc.py