removing miniprofiler integration, improving error handling