extract guiclient into main