mode is saved as a string