allow class attr for code block