auto file logging and fix build.xml