rescue in directory mode