got snippet nesting working and a bunch of other stuff