added logging to disk