mods to basscast.py