refine code of srs client