made plot optional in ebook and fixed query for plot.