added support for polymorphic associations