minor changes to export code block