rewrite receive_singleoption function;  process single option using the same function with add option
delete legacy file; rewrite receive_stoppedstatus function