split API json detail to different mode, fix a bug in onfly baseline
generation.