add swift mode