fixed snippets and added lazy loading to plugins