alerts now fire on the main thread
added recent date checking