made log work on current directory