folding atlas creation into here