change mwopen's API