move global stack into atl__env->stack