script for finding sleep timeout