enconding problems fixed; index option added