update the main client