bug fixs

added timeout checking