ENH: support factanal