added listening and timer threads to keep user alive