- chain debugSend_P into basic _debugSend instead of duplicating code, pass va_list between them - check if new[] call was successful - when possible, use stack buffer and fallback to heap buffer only when it is more that 64 chars