added server functions