eliminate use of handler500 with context