fix parser bug; log cookies