reworked how code blocks are executed. Resolves a lot of issues that handlers where trying to address.