change mw api base code