added example usage for client