change embedded server function to match external signature