re did server function

server functions re done and done shit