adding basic logging to files