faster response time by decreasing sleep() in listen thread