added support for custom class, use false as default value for where parameter, ref #90