make sure we call output handler within the profiling thread context, so that we can pass in some variables through thread local variables
bump up to 0.4.1