a collection of fixes, including the one log rotation detection which "broke travis"