syncing main.js up to mm api function addition