fixed require in snippets