updated groups API to new format and added more details