added territory log class as well as time stamp checking