log the cid too when switching buffers