rearranging when logging starts
rearranging when logging starts, and where it goes