externalize code-block reading code into it's own module