new branch with books
fixed error handling