functions on server turned into service