add logs for debug