better support for has_many #29