Custom dump path

Add ability to set custom dump path for middleware.