add functions to global environment