looks like switch logging is bad