added createFunction and Tombstone api.