Added missing exports to mws, removed console.log