add base class so that admin operations and search operations are
available in one object. remove hacky attrs and dir hacks as a result