added timeout decorator modified to accept environment variable for timeout