triggers for devices (from, to), clean files structure