adding more error type logging