remove duplicate mjs functions