fixed resource.new with tagnames as a string