fixes to dfix in dsr.py