added getmaxbooks