add additional warnings to aid debugging