adds a snap provider along with some code formatting fixes