fixed bug where stored function could be added multiple times with same uuid