extended support for custom model id attribute