trying to store context in nextTick call