modified: ybsutils.py