mkapi: don't get the final type. issue 7