the case may be, may order that any witness testify(a) outside the court room, if the judge or justice is of the opinion that the order is necessary to protect the safety of the witness; and(b) outside the court room or behind a screen or other device that would allow the witness not to see the accused, if the judge or justice is of the opinion that the order is necessary to obtain a full and can