adding timeout security