added object factory
bugfix string indices