added a timeout

added a timeout