add server function to core