fix code block for --shared