table switch and console message addition