to complete coding for ioctrlserver