add scheduling code
add a completion callback to invoke
add a way to track execution levels
catch Java exceptions in native code in the interpreter