globalcontext implemented & fixed