checkService script and run script updated