outputs only 1 warning message now (was clogging logs)