first working draft of the MWS plugin