added support for genind objects