server remove some copying of return values