add debug logging for regulator