added createIndex for *nix