switch to pydsl