logger didn't work how i thought.