implementation of require, console, global