need to typecast to int, console option is passed as a string