changes for supporting the version 2 log format.