start of client and config parsing