adding checking to the screensaver script