pass names instead of id

strange, it seems to work to me in past, but looking at code it probably never worked