can you move this into the handler struct rather than global :) ?