add snippets and update replace cmd