reduced global variables for idle timeout