improved logging. fixing second recognition issue