might be convenient to allow this to take an array of strings as well.