complete the auto clear log
fixed rcp and scp