fixed a bug with extracted emails and dir clash