replace magic global variables w/ defined ones in miniascape.globals