fixed checking

added a timeout