handle diverted files