add single file server class and test program