add mcapi pointer arg sanity checks