fixed filename bug, and changed log format