changed some debug messages to warning messages