folder watching and logging now works