small patch add debug param