use median/m.a.d. from poloka-core