modify reload logic to allow detecting new files