mapper and name generator gets parameter from same place