draft decrypt routine