implement commit reading