resore all server functions