migration to js.wrapping