fix Trampoline types and module api