fixed the logging and ignore blank tables