added server functions
added server functionality