cleaned up irregular context position method and json context kwarg arg