everything is working except the dirs array