more robust array of dirs