made a static server function