switched mode from string to int so i can do switches on it