add snippets for redirect and status