updated YhoWX and base.py for threading