some fixes to regeneration script and add a/b language