added logging to folder