bugfix: eliminated use of C global variables during configuration phase.