added embedded API server