read client preface in server