some sh commands are added into remote:restart config
some polishing