fix api passthrough