add config and config[] snippets