add code blocks and actions snippet