fix logging to separate files