add 'content-type' => 'application/json' header for client
add more error handling
add Group Client class