make api compatible to client router