more error debugging