context is optional now
add params and json dict to ctx
json added and dict deleted