optional success and error handler in groupService