protect code blocks