fixed groupmap issue, better error when role isnt defined