tweaked to allow container based on the logging level