explicitly scope references to native objects and methods to allow reusing code in other contexts