make the out directory earlier