sophia: complete EDR support; tests