added checker for message time to try to eliminate duplicates