fixed a problem with tempfile, took out a few timestamp logs.