putting functions on a server