oups, sorry about the repeat array_of_names=array_of_names.flatten fixes some of the problems but the real problem is the eval: if array_of_arguments is ["dod", "dud"] and command is "itemSearchRequest=ItemSearchRequest.new(*array_of_arguments)" the result is #<ItemSearchRequest:0x2534c @artist=nil, @actor="dod"> I am not sure why