add function, extensions and events schema