Loosely based on a 1987 novel written by Myron Levoy titled The Magic Hat of Mortimer Wintergreen. Set in the 1890s, the YA book follows a brother and sister who run away from their mean aunt and cross paths with a traveling magician named Mortimer Wintergreen. The man possesses an actual magical hat with a mind of its own and the three find themselves on a series of wild adventures.