removed stuff i'm not using anymore
retire sort mail