added changes for how slate templates work