api.js was still using misc.def