move book model magic out of public/