step one for multi-dir builds