mca.js manifest check for permissions fixes part 1