better support for class-based views