improve warnings