add option to pass a class to snippets