added missing functions to maker2.js