work on putting the def log in same folder as exe