reordering
Almost ok now logs should be sent into a logfile next step