first implementation of require, console, global