added environmental variable to evaluate for timeout