fixed groupid stuff
fixed default case and formatting