example: store lastrev after sync