changed the behaviour of warnings