made changes be resent immediately; added a timestamp debug function