better support for single table inheritance models