pass options object to getNameIdentifier