fixes to book persist functionaility

A few fixes