added long absence detection (maybe?)