change the way showwarning is overriden; fixes #125