added code for console setting