tracking down concurrency issus is fun.
strtok() is the root of all evil.