better support for mapping subclasses of vertices