avoid double debug or log