move gate_type sigil switch to where it belongs