changed names to copies of input strings, so if python gc's them we're still good