better messaging for debugging