continued bug fixes to btc.py, new btc.py-compatible version of users.py