Add case and chain plugin