prepare to write server class