ver0.4 change mode to string