getting medium working