adds logs for debug