move global subroutine pointers into alt__env structure