added optimistic logging to books