small fixes
fix some pieces of the extension api