move init_atmos back to main