added more debug output
removed writing to file in debug