changed getting logfile to load everything at the beginning