updated logger to warn